using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Net.SamuelChen.Libs.DataAccess;

namespace Net.SamuelChen.Production.SmartAssistant.Calendar
{
	/// <summary>
	/// Summary description for ModifyScheduleItem.
	/// </summary>
	public class fmModifyScheduleItem : System.Windows.Forms.Form
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.TextBox txtDescription;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.DateTimePicker dtTimeStart;
		private System.Windows.Forms.DateTimePicker dtDateStart;
		private System.Windows.Forms.Button btnOk;
		private System.Windows.Forms.DateTimePicker dtDateStop;
		private System.Windows.Forms.DateTimePicker dtTimeStop;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.CheckBox chkFullDay;
		private System.Windows.Forms.CheckBox checkBox1;
		private System.Windows.Forms.ComboBox cmbInterval;

		private ScheduleItem _scheduleItem;

		public fmModifyScheduleItem()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			_scheduleItem = new ScheduleItem();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(fmModifyScheduleItem));
			this.txtDescription = new System.Windows.Forms.TextBox();
			this.btnOk = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.dtTimeStart = new System.Windows.Forms.DateTimePicker();
			this.dtDateStart = new System.Windows.Forms.DateTimePicker();
			this.dtDateStop = new System.Windows.Forms.DateTimePicker();
			this.dtTimeStop = new System.Windows.Forms.DateTimePicker();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.chkFullDay = new System.Windows.Forms.CheckBox();
			this.checkBox1 = new System.Windows.Forms.CheckBox();
			this.cmbInterval = new System.Windows.Forms.ComboBox();
			this.SuspendLayout();
			// 
			// txtDescription
			// 
			this.txtDescription.AccessibleDescription = resources.GetString("txtDescription.AccessibleDescription");
			this.txtDescription.AccessibleName = resources.GetString("txtDescription.AccessibleName");
			this.txtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtDescription.Anchor")));
			this.txtDescription.AutoSize = ((bool)(resources.GetObject("txtDescription.AutoSize")));
			this.txtDescription.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtDescription.BackgroundImage")));
			this.txtDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtDescription.Dock")));
			this.txtDescription.Enabled = ((bool)(resources.GetObject("txtDescription.Enabled")));
			this.txtDescription.Font = ((System.Drawing.Font)(resources.GetObject("txtDescription.Font")));
			this.txtDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtDescription.ImeMode")));
			this.txtDescription.Location = ((System.Drawing.Point)(resources.GetObject("txtDescription.Location")));
			this.txtDescription.MaxLength = ((int)(resources.GetObject("txtDescription.MaxLength")));
			this.txtDescription.Multiline = ((bool)(resources.GetObject("txtDescription.Multiline")));
			this.txtDescription.Name = "txtDescription";
			this.txtDescription.PasswordChar = ((char)(resources.GetObject("txtDescription.PasswordChar")));
			this.txtDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtDescription.RightToLeft")));
			this.txtDescription.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtDescription.ScrollBars")));
			this.txtDescription.Size = ((System.Drawing.Size)(resources.GetObject("txtDescription.Size")));
			this.txtDescription.TabIndex = ((int)(resources.GetObject("txtDescription.TabIndex")));
			this.txtDescription.Text = resources.GetString("txtDescription.Text");
			this.txtDescription.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtDescription.TextAlign")));
			this.txtDescription.Visible = ((bool)(resources.GetObject("txtDescription.Visible")));
			this.txtDescription.WordWrap = ((bool)(resources.GetObject("txtDescription.WordWrap")));
			// 
			// btnOk
			// 
			this.btnOk.AccessibleDescription = resources.GetString("btnOk.AccessibleDescription");
			this.btnOk.AccessibleName = resources.GetString("btnOk.AccessibleName");
			this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnOk.Anchor")));
			this.btnOk.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnOk.BackgroundImage")));
			this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.btnOk.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnOk.Dock")));
			this.btnOk.Enabled = ((bool)(resources.GetObject("btnOk.Enabled")));
			this.btnOk.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnOk.FlatStyle")));
			this.btnOk.Font = ((System.Drawing.Font)(resources.GetObject("btnOk.Font")));
			this.btnOk.Image = ((System.Drawing.Image)(resources.GetObject("btnOk.Image")));
			this.btnOk.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnOk.ImageAlign")));
			this.btnOk.ImageIndex = ((int)(resources.GetObject("btnOk.ImageIndex")));
			this.btnOk.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnOk.ImeMode")));
			this.btnOk.Location = ((System.Drawing.Point)(resources.GetObject("btnOk.Location")));
			this.btnOk.Name = "btnOk";
			this.btnOk.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnOk.RightToLeft")));
			this.btnOk.Size = ((System.Drawing.Size)(resources.GetObject("btnOk.Size")));
			this.btnOk.TabIndex = ((int)(resources.GetObject("btnOk.TabIndex")));
			this.btnOk.Text = resources.GetString("btnOk.Text");
			this.btnOk.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnOk.TextAlign")));
			this.btnOk.Visible = ((bool)(resources.GetObject("btnOk.Visible")));
			this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
			// 
			// btnCancel
			// 
			this.btnCancel.AccessibleDescription = resources.GetString("btnCancel.AccessibleDescription");
			this.btnCancel.AccessibleName = resources.GetString("btnCancel.AccessibleName");
			this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCancel.Anchor")));
			this.btnCancel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCancel.BackgroundImage")));
			this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnCancel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCancel.Dock")));
			this.btnCancel.Enabled = ((bool)(resources.GetObject("btnCancel.Enabled")));
			this.btnCancel.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCancel.FlatStyle")));
			this.btnCancel.Font = ((System.Drawing.Font)(resources.GetObject("btnCancel.Font")));
			this.btnCancel.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.Image")));
			this.btnCancel.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCancel.ImageAlign")));
			this.btnCancel.ImageIndex = ((int)(resources.GetObject("btnCancel.ImageIndex")));
			this.btnCancel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCancel.ImeMode")));
			this.btnCancel.Location = ((System.Drawing.Point)(resources.GetObject("btnCancel.Location")));
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCancel.RightToLeft")));
			this.btnCancel.Size = ((System.Drawing.Size)(resources.GetObject("btnCancel.Size")));
			this.btnCancel.TabIndex = ((int)(resources.GetObject("btnCancel.TabIndex")));
			this.btnCancel.Text = resources.GetString("btnCancel.Text");
			this.btnCancel.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCancel.TextAlign")));
			this.btnCancel.Visible = ((bool)(resources.GetObject("btnCancel.Visible")));
			// 
			// dtTimeStart
			// 
			this.dtTimeStart.AccessibleDescription = resources.GetString("dtTimeStart.AccessibleDescription");
			this.dtTimeStart.AccessibleName = resources.GetString("dtTimeStart.AccessibleName");
			this.dtTimeStart.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtTimeStart.Anchor")));
			this.dtTimeStart.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtTimeStart.BackgroundImage")));
			this.dtTimeStart.CalendarFont = ((System.Drawing.Font)(resources.GetObject("dtTimeStart.CalendarFont")));
			this.dtTimeStart.CustomFormat = "HH:mm";
			this.dtTimeStart.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtTimeStart.Dock")));
			this.dtTimeStart.DropDownAlign = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("dtTimeStart.DropDownAlign")));
			this.dtTimeStart.Enabled = ((bool)(resources.GetObject("dtTimeStart.Enabled")));
			this.dtTimeStart.Font = ((System.Drawing.Font)(resources.GetObject("dtTimeStart.Font")));
			this.dtTimeStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
			this.dtTimeStart.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtTimeStart.ImeMode")));
			this.dtTimeStart.Location = ((System.Drawing.Point)(resources.GetObject("dtTimeStart.Location")));
			this.dtTimeStart.Name = "dtTimeStart";
			this.dtTimeStart.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtTimeStart.RightToLeft")));
			this.dtTimeStart.ShowUpDown = true;
			this.dtTimeStart.Size = ((System.Drawing.Size)(resources.GetObject("dtTimeStart.Size")));
			this.dtTimeStart.TabIndex = ((int)(resources.GetObject("dtTimeStart.TabIndex")));
			this.dtTimeStart.Visible = ((bool)(resources.GetObject("dtTimeStart.Visible")));
			// 
			// dtDateStart
			// 
			this.dtDateStart.AccessibleDescription = resources.GetString("dtDateStart.AccessibleDescription");
			this.dtDateStart.AccessibleName = resources.GetString("dtDateStart.AccessibleName");
			this.dtDateStart.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtDateStart.Anchor")));
			this.dtDateStart.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtDateStart.BackgroundImage")));
			this.dtDateStart.CalendarFont = ((System.Drawing.Font)(resources.GetObject("dtDateStart.CalendarFont")));
			this.dtDateStart.CustomFormat = "yyyy-MM-dd";
			this.dtDateStart.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtDateStart.Dock")));
			this.dtDateStart.DropDownAlign = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("dtDateStart.DropDownAlign")));
			this.dtDateStart.Enabled = ((bool)(resources.GetObject("dtDateStart.Enabled")));
			this.dtDateStart.Font = ((System.Drawing.Font)(resources.GetObject("dtDateStart.Font")));
			this.dtDateStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
			this.dtDateStart.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtDateStart.ImeMode")));
			this.dtDateStart.Location = ((System.Drawing.Point)(resources.GetObject("dtDateStart.Location")));
			this.dtDateStart.Name = "dtDateStart";
			this.dtDateStart.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtDateStart.RightToLeft")));
			this.dtDateStart.Size = ((System.Drawing.Size)(resources.GetObject("dtDateStart.Size")));
			this.dtDateStart.TabIndex = ((int)(resources.GetObject("dtDateStart.TabIndex")));
			this.dtDateStart.Visible = ((bool)(resources.GetObject("dtDateStart.Visible")));
			// 
			// dtDateStop
			// 
			this.dtDateStop.AccessibleDescription = resources.GetString("dtDateStop.AccessibleDescription");
			this.dtDateStop.AccessibleName = resources.GetString("dtDateStop.AccessibleName");
			this.dtDateStop.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtDateStop.Anchor")));
			this.dtDateStop.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtDateStop.BackgroundImage")));
			this.dtDateStop.CalendarFont = ((System.Drawing.Font)(resources.GetObject("dtDateStop.CalendarFont")));
			this.dtDateStop.CustomFormat = "yyyy-MM-dd";
			this.dtDateStop.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtDateStop.Dock")));
			this.dtDateStop.DropDownAlign = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("dtDateStop.DropDownAlign")));
			this.dtDateStop.Enabled = ((bool)(resources.GetObject("dtDateStop.Enabled")));
			this.dtDateStop.Font = ((System.Drawing.Font)(resources.GetObject("dtDateStop.Font")));
			this.dtDateStop.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
			this.dtDateStop.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtDateStop.ImeMode")));
			this.dtDateStop.Location = ((System.Drawing.Point)(resources.GetObject("dtDateStop.Location")));
			this.dtDateStop.Name = "dtDateStop";
			this.dtDateStop.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtDateStop.RightToLeft")));
			this.dtDateStop.Size = ((System.Drawing.Size)(resources.GetObject("dtDateStop.Size")));
			this.dtDateStop.TabIndex = ((int)(resources.GetObject("dtDateStop.TabIndex")));
			this.dtDateStop.Visible = ((bool)(resources.GetObject("dtDateStop.Visible")));
			// 
			// dtTimeStop
			// 
			this.dtTimeStop.AccessibleDescription = resources.GetString("dtTimeStop.AccessibleDescription");
			this.dtTimeStop.AccessibleName = resources.GetString("dtTimeStop.AccessibleName");
			this.dtTimeStop.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtTimeStop.Anchor")));
			this.dtTimeStop.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtTimeStop.BackgroundImage")));
			this.dtTimeStop.CalendarFont = ((System.Drawing.Font)(resources.GetObject("dtTimeStop.CalendarFont")));
			this.dtTimeStop.CustomFormat = "HH:MM";
			this.dtTimeStop.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtTimeStop.Dock")));
			this.dtTimeStop.DropDownAlign = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("dtTimeStop.DropDownAlign")));
			this.dtTimeStop.Enabled = ((bool)(resources.GetObject("dtTimeStop.Enabled")));
			this.dtTimeStop.Font = ((System.Drawing.Font)(resources.GetObject("dtTimeStop.Font")));
			this.dtTimeStop.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
			this.dtTimeStop.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtTimeStop.ImeMode")));
			this.dtTimeStop.Location = ((System.Drawing.Point)(resources.GetObject("dtTimeStop.Location")));
			this.dtTimeStop.Name = "dtTimeStop";
			this.dtTimeStop.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtTimeStop.RightToLeft")));
			this.dtTimeStop.ShowUpDown = true;
			this.dtTimeStop.Size = ((System.Drawing.Size)(resources.GetObject("dtTimeStop.Size")));
			this.dtTimeStop.TabIndex = ((int)(resources.GetObject("dtTimeStop.TabIndex")));
			this.dtTimeStop.Visible = ((bool)(resources.GetObject("dtTimeStop.Visible")));
			// 
			// label1
			// 
			this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
			this.label1.AccessibleName = resources.GetString("label1.AccessibleName");
			this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
			this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));
			this.label1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
			this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));
			this.label1.Font = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
			this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
			this.label1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
			this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));
			this.label1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
			this.label1.Location = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
			this.label1.Name = "label1";
			this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
			this.label1.Size = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
			this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));
			this.label1.Text = resources.GetString("label1.Text");
			this.label1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
			this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));
			// 
			// label2
			// 
			this.label2.AccessibleDescription = resources.GetString("label2.AccessibleDescription");
			this.label2.AccessibleName = resources.GetString("label2.AccessibleName");
			this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label2.Anchor")));
			this.label2.AutoSize = ((bool)(resources.GetObject("label2.AutoSize")));
			this.label2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label2.Dock")));
			this.label2.Enabled = ((bool)(resources.GetObject("label2.Enabled")));
			this.label2.Font = ((System.Drawing.Font)(resources.GetObject("label2.Font")));
			this.label2.Image = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
			this.label2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.ImageAlign")));
			this.label2.ImageIndex = ((int)(resources.GetObject("label2.ImageIndex")));
			this.label2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label2.ImeMode")));
			this.label2.Location = ((System.Drawing.Point)(resources.GetObject("label2.Location")));
			this.label2.Name = "label2";
			this.label2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label2.RightToLeft")));
			this.label2.Size = ((System.Drawing.Size)(resources.GetObject("label2.Size")));
			this.label2.TabIndex = ((int)(resources.GetObject("label2.TabIndex")));
			this.label2.Text = resources.GetString("label2.Text");
			this.label2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.TextAlign")));
			this.label2.Visible = ((bool)(resources.GetObject("label2.Visible")));
			// 
			// chkFullDay
			// 
			this.chkFullDay.AccessibleDescription = resources.GetString("chkFullDay.AccessibleDescription");
			this.chkFullDay.AccessibleName = resources.GetString("chkFullDay.AccessibleName");
			this.chkFullDay.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkFullDay.Anchor")));
			this.chkFullDay.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkFullDay.Appearance")));
			this.chkFullDay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkFullDay.BackgroundImage")));
			this.chkFullDay.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkFullDay.CheckAlign")));
			this.chkFullDay.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkFullDay.Dock")));
			this.chkFullDay.Enabled = ((bool)(resources.GetObject("chkFullDay.Enabled")));
			this.chkFullDay.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkFullDay.FlatStyle")));
			this.chkFullDay.Font = ((System.Drawing.Font)(resources.GetObject("chkFullDay.Font")));
			this.chkFullDay.Image = ((System.Drawing.Image)(resources.GetObject("chkFullDay.Image")));
			this.chkFullDay.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkFullDay.ImageAlign")));
			this.chkFullDay.ImageIndex = ((int)(resources.GetObject("chkFullDay.ImageIndex")));
			this.chkFullDay.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkFullDay.ImeMode")));
			this.chkFullDay.Location = ((System.Drawing.Point)(resources.GetObject("chkFullDay.Location")));
			this.chkFullDay.Name = "chkFullDay";
			this.chkFullDay.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkFullDay.RightToLeft")));
			this.chkFullDay.Size = ((System.Drawing.Size)(resources.GetObject("chkFullDay.Size")));
			this.chkFullDay.TabIndex = ((int)(resources.GetObject("chkFullDay.TabIndex")));
			this.chkFullDay.Text = resources.GetString("chkFullDay.Text");
			this.chkFullDay.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkFullDay.TextAlign")));
			this.chkFullDay.Visible = ((bool)(resources.GetObject("chkFullDay.Visible")));
			this.chkFullDay.CheckedChanged += new System.EventHandler(this.chkFullDay_CheckedChanged);
			// 
			// checkBox1
			// 
			this.checkBox1.AccessibleDescription = resources.GetString("checkBox1.AccessibleDescription");
			this.checkBox1.AccessibleName = resources.GetString("checkBox1.AccessibleName");
			this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("checkBox1.Anchor")));
			this.checkBox1.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("checkBox1.Appearance")));
			this.checkBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("checkBox1.BackgroundImage")));
			this.checkBox1.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("checkBox1.CheckAlign")));
			this.checkBox1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("checkBox1.Dock")));
			this.checkBox1.Enabled = ((bool)(resources.GetObject("checkBox1.Enabled")));
			this.checkBox1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("checkBox1.FlatStyle")));
			this.checkBox1.Font = ((System.Drawing.Font)(resources.GetObject("checkBox1.Font")));
			this.checkBox1.Image = ((System.Drawing.Image)(resources.GetObject("checkBox1.Image")));
			this.checkBox1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("checkBox1.ImageAlign")));
			this.checkBox1.ImageIndex = ((int)(resources.GetObject("checkBox1.ImageIndex")));
			this.checkBox1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("checkBox1.ImeMode")));
			this.checkBox1.Location = ((System.Drawing.Point)(resources.GetObject("checkBox1.Location")));
			this.checkBox1.Name = "checkBox1";
			this.checkBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("checkBox1.RightToLeft")));
			this.checkBox1.Size = ((System.Drawing.Size)(resources.GetObject("checkBox1.Size")));
			this.checkBox1.TabIndex = ((int)(resources.GetObject("checkBox1.TabIndex")));
			this.checkBox1.Text = resources.GetString("checkBox1.Text");
			this.checkBox1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("checkBox1.TextAlign")));
			this.checkBox1.Visible = ((bool)(resources.GetObject("checkBox1.Visible")));
			// 
			// cmbInterval
			// 
			this.cmbInterval.AccessibleDescription = resources.GetString("cmbInterval.AccessibleDescription");
			this.cmbInterval.AccessibleName = resources.GetString("cmbInterval.AccessibleName");
			this.cmbInterval.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cmbInterval.Anchor")));
			this.cmbInterval.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cmbInterval.BackgroundImage")));
			this.cmbInterval.DisplayMember = "1;2;3";
			this.cmbInterval.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cmbInterval.Dock")));
			this.cmbInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbInterval.Enabled = ((bool)(resources.GetObject("cmbInterval.Enabled")));
			this.cmbInterval.Font = ((System.Drawing.Font)(resources.GetObject("cmbInterval.Font")));
			this.cmbInterval.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cmbInterval.ImeMode")));
			this.cmbInterval.IntegralHeight = ((bool)(resources.GetObject("cmbInterval.IntegralHeight")));
			this.cmbInterval.ItemHeight = ((int)(resources.GetObject("cmbInterval.ItemHeight")));
			this.cmbInterval.Items.AddRange(new object[] {
															 resources.GetString("resource"),
															 resources.GetString("resource1"),
															 resources.GetString("resource2"),
															 resources.GetString("resource3"),
															 resources.GetString("resource4"),
															 resources.GetString("resource5"),
															 resources.GetString("resource6"),
															 resources.GetString("resource7"),
															 resources.GetString("resource8"),
															 resources.GetString("resource9"),
															 resources.GetString("resource10"),
															 resources.GetString("resource11"),
															 resources.GetString("resource12"),
															 resources.GetString("resource13"),
															 resources.GetString("resource14"),
															 resources.GetString("resource15"),
															 resources.GetString("resource16"),
															 resources.GetString("resource17"),
															 resources.GetString("resource18"),
															 resources.GetString("resource19"),
															 resources.GetString("resource20"),
															 resources.GetString("resource21"),
															 resources.GetString("resource22"),
															 resources.GetString("resource23")});
			this.cmbInterval.Location = ((System.Drawing.Point)(resources.GetObject("cmbInterval.Location")));
			this.cmbInterval.MaxDropDownItems = ((int)(resources.GetObject("cmbInterval.MaxDropDownItems")));
			this.cmbInterval.MaxLength = ((int)(resources.GetObject("cmbInterval.MaxLength")));
			this.cmbInterval.Name = "cmbInterval";
			this.cmbInterval.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cmbInterval.RightToLeft")));
			this.cmbInterval.Size = ((System.Drawing.Size)(resources.GetObject("cmbInterval.Size")));
			this.cmbInterval.TabIndex = ((int)(resources.GetObject("cmbInterval.TabIndex")));
			this.cmbInterval.Text = resources.GetString("cmbInterval.Text");
			this.cmbInterval.Visible = ((bool)(resources.GetObject("cmbInterval.Visible")));
			this.cmbInterval.SelectedIndexChanged += new System.EventHandler(this.cmbInterval_SelectedIndexChanged);
			// 
			// fmModifyScheduleItem
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackColor = System.Drawing.Color.GhostWhite;
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.ControlBox = false;
			this.Controls.Add(this.cmbInterval);
			this.Controls.Add(this.checkBox1);
			this.Controls.Add(this.chkFullDay);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.dtDateStop);
			this.Controls.Add(this.dtTimeStop);
			this.Controls.Add(this.dtDateStart);
			this.Controls.Add(this.dtTimeStart);
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.btnOk);
			this.Controls.Add(this.txtDescription);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "fmModifyScheduleItem";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.ShowInTaskbar = false;
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.Load += new System.EventHandler(this.fmModifyScheduleItem_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void fmModifyScheduleItem_Load(object sender, System.EventArgs e) {
			if (ScheduleItem.DateStart != DateTime.MinValue) {
				dtDateStart.Value = ScheduleItem.DateStart.Date;
				dtTimeStart.Value = ScheduleItem.DateStart.Date;
			}

			if (ScheduleItem.DateStop != DateTime.MinValue) {
				dtDateStop.Value = ScheduleItem.DateStart.Date;
				dtTimeStop.Value = ScheduleItem.DateStart.Date;
			}

			txtDescription.Text = ScheduleItem.Description;
		}

		private void btnOk_Click(object sender, System.EventArgs e) {
			if (ScheduleItem.ID < 0)
				Database.InsertScheduleItem(txtDescription.Text, dtTimeStart.Value, dtTimeStop.Value);
			else
				Database.UpdateScheduleItem(ScheduleItem.ID, txtDescription.Text, dtTimeStart.Value, dtTimeStop.Value);
		}

		private void chkFullDay_CheckedChanged(object sender, System.EventArgs e) {
			if (chkFullDay.Checked) {
				dtTimeStart.Value = Convert.ToDateTime("00:00:00");
				dtTimeStart.Visible = false;
				dtTimeStop.Value = Convert.ToDateTime("23:59:59");
				dtTimeStop.Visible = false;
			} else {
				dtTimeStart.Value = DateTime.Now;
				dtTimeStart.Visible = true;
				dtTimeStop.Value = DateTime.Now;
				dtTimeStop.Value.AddMinutes(30);
				dtTimeStop.Visible = true;	
			}
		}

		private void cmbInterval_SelectedIndexChanged(object sender, System.EventArgs e) {
				txtDescription.Text = cmbInterval.SelectedValue.ToString();
		}


		public ScheduleItem ScheduleItem {
			get { return _scheduleItem; }
			set { _scheduleItem = value; }
		}
	}
}
